package com.freedom.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author freedom
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer currentPage;
    private Integer pageSize;
    private String keyword;

    public Integer getStart () {
        return (currentPage - 1) * pageSize;
    }
}
